/*********************************************************************************
  *Copyright (c)    2021   xldeng
  *FileName:        tree_node.h
  *Author:          xldeng
  *Version:         1.0
  *Date:            2021/2/8 11:40
  *Description:     
  *Others:          
  *Function List:   
     1.…………
  *History:  
     1.Date:
       Author:
       Modification:
**********************************************************************************/

#ifndef LEETCODE_TREE_NODE_H
#define LEETCODE_TREE_NODE_H
struct TreeNode {
    int val;
    TreeNode *left;

    TreeNode *right;

    TreeNode() : val(0), left(nullptr), right(nullptr) {}

    TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}

    TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
};
#endif //LEETCODE_TREE_NODE_H
